package Router;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
@RequestMapping(value="controller")
public class RouterController{
	
//	private static Logger logger = Logger.getLogger(RouterController.class);
	
	@RequestMapping 
	public String router(@RequestParam("funcID")String funcID){
		if(funcID.equals("0001")){
			return "forward:auth/terminal/login";
		}else if(funcID.equals("0002")){
			return "forward:courier/saveParcel";
		}else if(funcID.equals("0003")){
			return "forward:auth/td/sendCheckCodeToCourier";
		}else if(funcID.equals("0004")){
			return "forward:auth/td/registerCourier";
		}else if(funcID.equals("0005")){
			return "forward:auth/td/courier/login";
		}else if(funcID.equals("0006")){
			return "forward:auth/td/admin/login";
		}else if(funcID.equals("0007")){
			return "forward:auth/td/resendCheckCode";
		}else if(funcID.equals("0009")){
			return "forward:user/getParcel";
		}else if(funcID.equals("0010")){
			return "forward:user/quit";
		}else if(funcID.equals("0011")){
			return "forward:auth/td/courier/logout";
		}else if(funcID.equals("0012")){
			return "forward:heartBeat";
		}else if(funcID.equals("0013")){
			return "forward:auth/td/admin/logout";
		}else if(funcID.equals("0014")){
			return "forward:utils/RegisterUser";
		}else if(funcID.equals("0015")){
			return "forward:auth/td/user/login/RFID";
		}else if(funcID.equals("0016")){
			return "forward:utils/isUserRegistered";
		}else if(funcID.equals("0017")){
			return "forward:auth/td/user/login/checkCode";
		}else if(funcID.equals("0019")){
			return "forward:utils/timestamp";
		}else if(funcID.equals("0020")){
			return "forward:terminal/dataWrite";
		}else if(funcID.equals("0021")){
			return "forward:utils/statusWrite";
		}else if(funcID.equals("0022")){
			return "forward:utils/ConfWrite";
		}else if(funcID.equals("0023")){
			return "forward:courier/cancelParcel";
		}else if(funcID.equals("0024")){
			return "forward:auth/td/courier/phone";
		}else if(funcID.equals("0025")){
			return "forward:utils/isUserRegister";
		}else if(funcID.equals("0026")){
			return "forward:auth/td/user/withdrawParcel";
		}else if(funcID.equals("0027")){
			return "forward:auth/td/resetCourierPassword";
		}else if(funcID.equals("0028")){
			return "forward:utils/parcelSeqReturnMobileNum";
		}else if(funcID.equals("0029")){
			return "forward:utils/updateTerminalInfoInCache";
		}else if(funcID.equals("0030")){
			return "forward:utils/removeTerminalCache";
		}else if(funcID.equals("0031")){
			return "forward:utils/resendParcelMessage";
		}else if(funcID.equals("0032")){
			return "forward:courier/cancelCertainParcel";
		}else if(funcID.equals("0033")){
			return "forward:auth/td/courier/openBookedBox";
		}else if(funcID.equals("0034")){
			return "forward:auth/td/user/login/getCode";
		}else if(funcID.equals("0035")){
			return "forward:auth/td/user/cancelOrder";
		}else if(funcID.equals("0036")){
			return "forward:auth/td/box/changeBoxStatus";
		}else if(funcID.equals("0037")){
			return "forward:auth/td/abnormal/alarming";
		}else{
			return "forward:error";
		}
		
	}

	
}
